import request from '@/utils/request'

// 查询个人投诉列表
export function listLXHDocComplaint(query) {
  return request({
    url: '/LXHComplaint/LXHDocComplaint/list',
    method: 'get',
    params: query
  })
}

// 查询个人投诉详细
export function getLXHDocComplaint(complaintId) {
  return request({
    url: '/LXHComplaint/LXHDocComplaint/' + complaintId,
    method: 'get'
  })
}

// 新增个人投诉
export function addLXHDocComplaint(data) {
  return request({
    url: '/LXHComplaint/LXHDocComplaint',
    method: 'post',
    data: data
  })
}

// 修改个人投诉
export function updateLXHDocComplaint(data) {
  return request({
    url: '/LXHComplaint/LXHDocComplaint',
    method: 'put',
    data: data
  })
}

// 删除个人投诉
export function delLXHDocComplaint(complaintId) {
  return request({
    url: '/LXHComplaint/LXHDocComplaint/' + complaintId,
    method: 'delete'
  })
}
